package com.forenow.demo.demo10;

public class ClassB implements InterfaceA{
    @Override
    public int method(int n) {
        int jiecheng=1;
        for (int i = 1; i <n ; i++) {
            jiecheng*=i;
        }
        return jiecheng;
    }
}
